import http from './interface'

// 用户订单列表
//待付款，待收货，待评价
export const _orderList = (data) => {
    return http.request({
        url: 'ktSyncOrder/getOrderList',
        // url: 'address/detail',
        method: 'GET',
        header:'h',
        data,
        // handle:true
    })
};
//退房
export const _orderCheckOut = (data) => {
    return http.request({
        url: 'ktCheckPush/checkOut',
        // url: 'address/detail',
        method: 'POST',
        header:'h',
        data,
        // handle:true
    })
};
//获取退款商品的信息
export const _refundProInfo = (data) => {
    return http.request({
        url: 'returnApply/getOrderInDetail',
        // url: 'address/detail',
        method: 'GET',
        header:'h',
        data,
        // handle:true
    })
};
//申请退款
export const _refundMoney = (data) => {
    return http.request({
        url: 'returnApply/create',
        // url: 'address/detail',
        method: 'POST',
        header:'h',
        data,
        // handle:true
    })
};
//退货原因
export const _returnReason = (data) => {
    return http.request({
        url: 'returnApply/refundReasons',
        // url: 'address/detail',
        method: 'GET',
        header:'h',
        data,
        // handle:true
    })
};

//获取退款详情
export const _refundReason = (data) => {
    return http.request({
        url: 'returnApply/getReturnOrderInfo',
        // url: 'address/detail',
        method: 'GET',
        header:'h',
        data,
        // handle:true
    })
};

//退货退款，添加货物信息
export const _appendGoodsInfo = (data) => {
    return http.request({
        url: 'returnApply/addExpressInfo',
        // url: 'address/detail',
        method: 'GET',
        header:'h',
        data,
        // handle:true
    })
};
//获取修改退款信息
export const _getReturnOrder = (data) => {
    return http.request({
        url: 'returnApply/getReturnOrderWithId',
        // url: 'address/detail',
        method: 'GET',
        header:'h',
        data,
        // handle:true

    })
};
//修改退款信息
export const _updateReturnOrder = (data) => {
    return http.request({
        url: 'returnApply/updateReturnOrder',
        // url: 'address/detail',
        method: 'POST',
        header:'h',
        data,
        // handle:true
    })
};
//撤销退款信息
export const _refundCancelInfo = (data) => {
    return http.request({
        url: 'returnApply/updateStatus',
        // url: 'address/detail',
        method: 'GET',
        header:'h',
        data,
        // handle:true
    })
};
//添加退款物流
export const _addExpressInfo = (data) => {
    return http.request({
        url: 'returnApply/addExpressInfo',
        // url: 'address/detail',
        method: 'POST',
        header:'h',
        data,
        // handle:true
    })
};
//查看物流
export const _showLogistics = (data) => {
    return http.request({
        url: 'order/getDetail',
        // url: 'address/detail',
        method: 'GET',
        header:'h',
        data,
        // handle:true
    })
};
//订单详情
export const _orderDetail = (data) => {
    return http.request({
        url: 'order/detail',
        // url: 'address/detail',
        method: 'GET',
        header:'h',
        data,
        // handle:true
    })
};
//发表评论
export const _addEvaluate = (data) => {
    return http.request({
        url: 'pms/addEvaluate',
        // url: 'address/detail',
        method: 'POST',
        header:'h',
        data,
        // handle:true
    })
};
//取消订单
export const _orderCancel = (data) => {
    return http.request({
        url: 'order/cancelOrder',
        // url: 'address/detail',
        method: 'GET',
        header:'h',
        data,
        // handle:true
    })
};
//确认收货
export const _confirmPro = (data) => {
    return http.request({
        url: 'order/confirm',
        // url: 'address/detail',
        method: 'GET',
        header:'h',
        data,
        // handle:true
    })
};
//查看物流
export const _logistics = (data) => {
    return http.request({
        url: 'order/getWayBillInfo',
        // url: 'address/detail',
        method: 'GET',
        header:'h',
        data,
        // handle:true
    })
};

// 默认全部导出  import api from '@/common/vmeitime-http/'
// export default {
//     _userCoupon
// }